Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some improvements around cget/configure #8

Merged
merged 4 commits into from
Sep 26, 2024
Merged

Conversation

rdbende
Copy link
Member

@rdbende rdbende commented Sep 24, 2024

No description provided.

svg_options = {key: t(kwargs.pop(key)) for (key, t) in self._svg_options if key in kwargs}
if kwargs: # len(kwargs) > 0
svg_options = {key: kwargs.pop(key) for key in self.__svg_options if key in kwargs}
if kwargs:
tk.PhotoImage.configure(self, **kwargs)
Copy link
Member Author

@rdbende rdbende Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
tk.PhotoImage.configure(self, **kwargs)
return tk.PhotoImage.configure(self, **kwargs)

Tkinter returns the values in these places

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like images don't do that. Likely a bug.

tksvg/__init__.py Outdated Show resolved Hide resolved
tksvg/__init__.py Outdated Show resolved Hide resolved
@rdbende rdbende merged commit fdc6e79 into master Sep 26, 2024
7 of 9 checks passed
@rdbende rdbende deleted the minor-improvements branch September 26, 2024 17:50
@rdbende rdbende restored the minor-improvements branch September 28, 2024 13:08
@rdbende rdbende deleted the minor-improvements branch September 28, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant